Lattice modes in PbHPO4 and H2C4O4