Combined reuse of wastewater and desalination for the management of water system in conditions of scarcity