Sustainable biogas production in municipal wastewater treatment plants