Influence of Shear Heating and Thermomechanical Coupling on Earthquake Sequences and the Brittle-Ductile Transition