Electron detection with a dual-readout calorimeter