Electron-optical or ion-optical arrangements for the correction of image defects