South Africa was forced into the energy transition by the electricity crisis, sparking a wave of private investment in renewables