Phase segregation in vapour-deposited Co-Cr magnetic thin films, observed by X-ray absorption fine structure spectroscopy