Chemisorption of hydrogen on titanium: Embedding theory and comparisons with small clusters