Investigating surface dynamics with inelastic x-ray scattering