Scattering of molecular ions by solid surfaces