3D simulation of the electrostatic energy-analyzer of beam of charged partices