Simulation of the dynamic properties of Hg2Hal2 crystals (Hal=Cl, Br, I)