Synthesis, characterization and phase transitions of the inorganic–organic layered perovskite-type hybrids (CnH2n+1NH3)2PbI4, n = 7, 8, 9 and 10 | Synapse