The scattering of doubly charged ions from surfaces