Gamma ray spectrometer