Crystal structures, phase transitions, and switchable dielectric behaviors: comparison of a series of N-heterocyclic ammonium perchlorates.