Correction of eddy current errors in electron beam deflection