Real-time pulse compression in multigate spectral Doppler imaging