G7 agrees to stop funding coal-fired power