THOR: THermal-aware Optimizations for extending ReRAM Lifetime | IEEE Conference Publication | IEEE Xplore