Where did Ibn Sina hope to flee from after Hamadan?