Structural Stability and Chemical Bonding of TiN: Ab Initio Study