Heterogeneous nucleation and shape transformation of multicomponent metallic nanostructures.