Mechanisms for critical-current degradation in NbTi and Nb 3 Sn multifilamentary wires