Surface phenomena in the process of titanium hydride formation