Design of robust spin-transfer torque magnetic random access memories for ultralow power high performance on-chip cache applications