Sorption properties of chemical hydrides confined into mesoporous scaffolds