Electron-beam or ion-beam tubes for localised treatment of objects