Africa's next generation of power projects is being built around solar and wind power and battery storage, as governments and investors shift away from coal and large hydropower dams.