Thermal weakening friction during seismic slip: experiments and models with heat sources and sinks