G-7 countries commit to phasing out coal