Implement fftshift for periodograms and spectrograms