Controlled Transformation of Nanoparticles with Tunable Surface Plasmon Resonance