Criteria for Wastewater Treatment and Reuse under Water Scarcity