Activated sludge process design and control :theory and practice