Study of deformation and shape recovery of NiTi nanowires under torsion