Thermoelastic contact with frictional heating and thermal contact resistance