Nanomaterials for hydrogen generation and carbon reduction