getAvgPeaks function

Extract peaks of average spectra