Water treatment and wastewater