Comparison of a time-of-flight system with an electrostatic analyzer in low-energy ion scattering