Renewable energy, biogas, microgrids and advancing-generation technologies open new opportunities for reliable, cost-effective, resilient heat and electricity