Interaction between nanobuds and hydrogen molecules: A first-principles study