Analysis of retarding field energy analyzer transmission by simulation of ion trajectories.