Vibrational and optical properties of a one-dimensional organic–inorganic crystal [C6H14N]PbI3