Along 2,000 miles of the East African coast, the sophisticated trading centers of the medieval Swahili reveal their origins and influences