thesis paper on wastewater treatment