Energetic and economic feasibility of a combined membrane-based process for sustainable water and energy systems