Glancing-angle scattering of fast ions at solid surfaces