A generic extension to a dynamic pumping energy model for wastewater applications