Phase diagram and thermodynamic properties of solid magnesium in the quasiharmonic approximation.