Relation between redox potential and oxygen levels in activated-sludge reactors