how does a foam water spray system extingush a fire?