Calculate Power Spectral Density