Spintronic devices: a promising alternative to CMOS devices