Development and permeability of a dynamic membrane for anaerobic wastewater treatment