Shape-memory transformations of NiTi: minimum-energy pathways between austenite, martensites, and kinetically limited intermediate states.