Collision dynamics of an energetic carbon ion impinging on the stone-wales defect in a single-walled carbon nanotube