Spin-transfer torques and nanomagnets