Metals and EOX in sludge wastewater treatment management