Inelastic processes in ion scattering spectroscopy of solid surfaces