Nanowire Transformation by Size-Dependent Cation Exchange Reactions