Lattice dynamics of magnesium oxide