First-principles study of the elastic properties and electronic structure of NiTi, CoTi and FeTi