Comparing the thermal stability of NbTi and Nb3Sn wires