Dynamics of gas-surface scattering