Time-spectral density and wavelets approaches. Comparative study. Applications to SP500 returns and US GDP