Size dependence, nucleation, and phase transformation of FePt nanoparticles