Spin-transfer torque in mesoscopic systems