Why did Ataturk choose to establish a republic instead of being a dictator?