Martensitic transformations and functional properties of thermally and thermomechanically treated Ti–Ni–Nb-based alloys