A physics-based compact model of thermal resistance in RRAMs. (June 2023)