Spintronic Nanomemory and Nanosensor Devices