Hydrodynamics and parametric study of an activated sludge process using residence time distribution technique