The oil giants posted lower third-quarter profits as energy prices sank and fuel-making margins narrowed.