Thermodynamic understanding of crystal nucleation and growth for halide perovskite films | Synapse