What factors contributed to the expansion of the Ottoman Empire in the 1400s?