Strong thickness-dependent quantum confinement in all-inorganic perovskite Cs2PbI4 with a Ruddlesden–Popper structure