The Role of Ligands in the Synthesis of FePt Nanoparticles