Wastewater use in irrigated agriculture: confronting the livelihood and environmental realities