Structural and thermodynamic limits of layer thickness in 2D halide perovskites | Synapse