From Alexandria to Baghdad: Mechanical Marvels and Cultural Interactions in the Ancient and Early Medieval Middle East