Title: Nonsmooth Dynamics of Contacting Thermoelastic Bodies