Sierra Leone has launched an energy-transition roadmap that requires mining companies to connect to the national grid by 2040.