Hydrogen in intermetallic compounds