Nonlinear diffusion filtering for peak-preserving smoothing of a spectrum signal