G7 nations to undertake to help Ukraine indefinitely — agency