Wastewater treatment using bioreactor with dual functional ceramic membrane