How 1 African country moved from fossil fuels to renewables with a giant battery