Both Shell and Exxon Mobil have also warned that lower refining margins will hit profits for the third quarter of the year.