Computer Simulation of Ion Beams for the Design of Three-Electrode Ion Extraction System