A method to determine a transmission correction for electron spectrometers using synchrotron radiation