Oil and gas prices have risen strongly this week, adding to worries about high inflation weighing on economic growth around the world.