High-resolution ion time-of-flight analysis for measuring molecular velocity distributions