first draft of function to compare shape of fourier spectra instead of amplitudes of corresponding freqs