Erdoğan’s earthquake response a test for his leadership as elections loom