Overcoming water scarcity and quality constraints