Thermal Heating in ReRAM Crossbar Arrays: Challenges and Solutions