Use of urea in wastewater treatment