Europe's largest oil firm Royal Dutch Shell has beaten analyst expectations, reporting profits for its second quarter that are three times larger than this time last year.