Sliding contact with friction of a thermoelastic solid at subsonic, transonic, and supersonic speeds