Determination of the rotary fatigue life of NiTi alloy wires