smooth_moving_avg function

Smooth moving average for spectra