An in-depth simulation study of thermal reset transitions in resistive switching memories