What obstacle did the empires in western africa have to over come in order to trade with cities in northern africa?