Ligand-Assisted Solid-State Transformation of Nanoparticles