Design of nanomaterials for hydrogen storage