Self-accommodation in NiTi shape memory alloys