Ecological effects of wastewater