Mechanical Failure Mode of Metal Nanowires: Global Deformation versus Local Deformation