Aberration correction and its automatic control in scanning electron microscopes