Influence of Ti and Ta doping on the irreversible strain limit of ternary Nb3Sn superconducting wires made by the restacked-rod process