Composition gradient as a source of pinning in Nb–Ti and NbTa–Ti superconductors