Ion scattering by atomic chains on a solid surface