who were the first europeans to set up trading posts on the african coast how did trade with europe give some african city states a military advantage