Monitoring and diagnosis of energy consumption in wastewater treatment plants. A state of the art and proposals for improvement