Growth in Africa’s two largest economies may be sputtering along but that won’t stop the continent’s gross domestic product from expanding at the fastest pace since at least 2012.