How Turkey changed the way it elects its president