A thermal and process variation aware MTJ switching model and its applications in soft error analysisPeiyuan WangWei Zhanget al.2012ICCAD 2012