Strategy of stochastic real-time control of wastewater treatment plants