Thermoelastic contact between a flat punch and an anisotropic half-space