Synthesis of Halide 2D perovskite via kinetics and thermodynamics control