Dynamical motion of atoms in Ni(001) and Rh(001) surfaces