When is firefighting foam most effective?