Electronic structure of TiH2