Dielectric and photoluminescence properties of a layered perovskite-type organic–inorganic hybrid phase transition compound: NH3(CH2)5NH3MnCl4