Comparison of ion optics for transverse slot and cylinders