Effects of Loading and Constraining Conditions on the Thermomechanical Fatigue Life of NiTi Shape Memory Wires