role of alkalinity in wastewater treatment