Smart Membrane-Based System for Cheaper and Sustainable Water Desalination