Multiphase flow theory applied to water treatment systems and development of a new wall film model for membrane fouling