Interatomic bonding in oxygen-stabilized Ti2 Ni-type compounds