Reduced-order modelling of the activated-sludge process