Structural characterization of the Co/Cr multilayers by x-ray-absorption spectroscopy