Computer-aided electron-beam deflection control system