Interactions of hydrogen molecules with metal-organic frameworks at adsorption sites