A unified model of the activated sludge process.