The Ottoman Empire was in control of most of SW Asia till the end of what war?