Hydrogen-induced modifications to the electronic structure of intermetallic compounds