Electrostatic modeling of an in-plane gated field emission cathode