Deterministic Nucleation And Structural Control Of Halide Perovskite Thin Films For Optoelectronic Devices