Strain dependence of the critical current of Nb3Sn superconductors doped with Hf and Ga