Where water is scarce, communities turn to reusing wastewater