G7 leaders voice firm support for Ukraine 'as long as it takes'