Interwell vs intrawell stochastic resonance driven by spin-transfer torque in nanomagnet