Field computation techniques in electron optics