Analysing sludge balance in activated sludge systems with a novel mass transport model.