Integrated Approach to WWTP Upgrade for Energetic and Efficiency Sustainability