biochemical reactions in treatment of wastewater