Process integration by using membranes for recycling process streams in textile industry