A Nigerian oil company racked up the country’s largest corporate losses since the credit crisis