Hydrogen storage properties in nano-structured magnesium- and carbon-related materials