Amorphization mechanism of icosahedral metal nanoclusters