Insight on the Stability of Thick Layers in 2D Ruddlesden-Popper and Dion-Jacobson Lead Iodide Perovskites.