Foam extinguishes a fire mainly by...