A phenomenological relativistic theory of thermoelasticity