In the shadow of the church: the building of mosques in early medieval Syria