Surface resonances in vibrational spectroscopy of hydrogen on transition metal surfaces: Pd(100) and Pd(111)