G7 and EU to ban restart of Russian gas pipelines