Real-time computer-optimized electron coincidence spectrometer