Where did Ibn Sina hope to flee to after Hamadan