Optimisation of the 180 degrees hemispherical electrostatic deflector