Interatomic potential for the NiTi alloy and its application