Electronic structure and surface kinetics of palladium hydride studied with x-ray photoelectron spectroscopy and electron-energy-loss spectroscopy