Non-empirical calculations for the interaction of dihydrogen with hydride and alkyl complexes of boron, aluminium and titanium