Ab initio lattice dynamics and phase transformations of ZrO2