psd: Calculation of power spectral density