Electron spectroscopy with a diamond detector. (February 2022)