The effects of non-renewable energy, renewable energy, economic growth, and foreign direct investment on the sustainability of African countries