Magnesium: Comparison of density functional theory calculations with electron and x-ray diffraction experiments