Application of stochastic modelling techniques to wastewater tratment processes real-time operation and control