Global oil companies’ profits surged amid war