Some parts of the Ottoman Empire gained independence in what year