Which city-state was in the best location to benefit from trade-based cultural exchange with the islamic civilization just across the mediterranean?