Quantitative assessment of energy and resource recovery in wastewater treatment plants based on plant-wide simulations