Effects of the working conditions of retarding field spectrometers on the energy distribution of secondary electrons