Polls close in Turkey as Erdoğan faces his sternest test