Synthesis and characterization of layered chlorocadmates(II) with perovskite-like structures