Advanced elasticity/Clausius-Duhem inequality for thermoelasticity