which new models did the ottomans adopt during the nineteenth century to adapt themselves to the western challenge?