Imamoglu secures second municipal term in Istanbul, dealing blow to Erdogan