As blackouts spark protests, a decade of fractured governance, underinvestment and corruption has left an oil and gas-rich nation unable to keep its lights on