Thermoelastic instability in contact problems for rotating solids with heat generation