What were the main factors that led to the decline of the Ottoman Empire?