Energy saving potential of using real-time BOD monitoring for feedforward and feedback control in wastewater treatment.