Modelling wastewater treatment plants throught series analysis