A novel ionizer design for detector length compensation in time-of-flight energy analysis of molecular beams