The role of Ti in alanates and borohydrides: catalysis and metathesis