Metal Complex Formation in Wastewater Systems