Finite element approximation to a quasi-static thermoelastic problem to the contact of two rods