Hydrogen dynamics in the hexagonal Ho2Fe17H4 and Y2Fe17H4.2: Inelastic and quasielastic neutron scattering studies