Added smoothing over pixel intensity values in the Spectrum.

The intensities recorded in the Spectrum object for baseline and
sample measurements are now smoothed across multiple neighboring pixels.
That means that the intensity value for each pixel is a weighted average
of the intensities of its neighboring pixel, which reduces some noisy
spikes in the data.