A dynamic thermoviscoelastic contact problem with the second sound effect