Wastewater treatment containing organic solvent from the production of hybrid membranes