Hydrogen-surface interaction from first-principles calculations and its implication to hydrogen embrittlement mechanisms of titanium