Transformation-induced plasticity as the origin of serrated flow in an NiTi shape memory alloy