Patterning self-assembled FePt nanoparticles