Frequency-domain compensation