A study of irradiation in the treatment of wastewater