The HEAO 3 gamma-ray spectrometer