Structure determination of thin CoFe films by anomalous x-ray diffraction