An online method for estimation of degradable substrate and biomass in an aerated activated sludge process.