Thermal pressurization during earthquake nucleation and dynamic rupture