Application of two-and three-phase flow in submerged flat-sheet anaerobic membrane bioreactors for dairy wastewater treatment