‘I thank you and the brotherly Turkish people for this support,’ Ilham Aliyev writes in letter to Turkey's president