Deformation mechanism of nanocrystalline magnesium in compression