Numerical computation of fields in electrostatic devices: experience and applications