Advanced wastewater treatment and membrane fouling control by electro-encapsulated self-forming dynamic membrane bioreactor