Thermal effects in dynamic storage of hydrogen by adsorption