T-matrix calculations of spin-dependent optical forces in optically trapped nanowires