Half a billion Africans already have electricity. The trouble is, it barely works. Fixing that — city by city, grid by grid — is now the mission.