Sustainable wastewater reuse for agriculture