Tools for spectral analysis