Membrane separation for wastewater reuse in the textile industry