Molecular Engineering toward Coexistence of Dielectric and Optical Switch Behavior in Hybrid Perovskite Phase Transition Material.