The Role of Lattice System on Ferroelectric Phase Transition in PbHPO4