How did mustafa kemal ataturk gain power?