General Strategy for Direct Synthesis of L1 Nanoparticle Alloys from Layered Precursor: The Case of FePt