Ultraviolet photoelectron spectra from hydrogen adsorbed on Ni(111) and Pd(111) surfaces