Greenhouse gases from membrane bioreactor treating hydrocarbon and saline wastewater