Synthesis, characterization and phase transitions of the inorganic–organic layered perovskite-type hybrids (CnH2n+1NH3)2PbI4 (n = 12, 14, 16 and 18) | Synapse