Ab initio study of atomic hydrogen diffusion on the clean and hydrogen-terminated Si(001) surface