Nano-devices based on spin-transfer torque effects