Energy calibration routines for spectrometer cameras