Unravelling Structure and Formation Mechanisms of Ruddlesden-Popper-Phase-like Nanodomains in Inorganic Lead Halide Perovskites.