Study of aberration correction in two types of electrostatic lenses