ENERGY AND MATERIAL REFINERIES OF FUTURE WASTEWATER TREATMENT PLANTS