X-ray absorption and diffraction studies of thin polymer/FePt nanoparticle assemblies