Shell posted a loss of more than $18 billion in the second quarter on huge write-downs as the 113-year-old company cut its oil