Electron-capture detector