Photoelectron recoil in CO in the x-ray region up to 7 keV