G7 central banks see inflation threat from rising energy prices