Shape memory effect and superelasticity in Ti—Ni alloys