" By the early 20th century , Bulgaria , Greece , Montenegro and Serbia had achieved independence from the Ottoman Empire , but large elements of their ethnic populations remained under Ottoman rule .