The determination of the period of magnetic multilayers by the X-ray energy dispersive diffraction method