The adsorption of hydrogen on Pd(100) and Rh(100) surfaces: a comparative theoretical study