Functional fatigue of Ni–Ti shape memory wires under various loading conditions