calibration of spectrometer theory