Electrostatic deflector for the University of Colorado energy-loss spectrometer