On the detection and measurement of cosmic-ray electrons