Dynamic Crystallization And Stability Engineering In Hybrid Organic-Inorganic Perovskites: Towards Water-Stable And Thermochromic Materials