Linear Estimation and the Analysis of Gamma Ray Pulse-Height Spectra