Effects of axial dispersion on the optimal design of the activated sludge process