Determination of the crystallite size and crystal structure of magnesium powder by x-ray diffraction