Structure determination of nanostructured Ni-Co films by anomalous x-ray scattering