Most people in developing countries had access to electricity by 2017. But not in Africa, where about 600 million still lacked access to the grid.