wastewater treatment and energy production