How did Islam affect the spread of culture, trade and the tolerance of foreign religions such as Christianity and Judaism in the Islamic Caliphates that reached from Persia to Spain