An improved method for numerical analysis of point electron and ion source optics