Deformation mechanisms in a TiNi shape memory alloy during cyclic loading