Coherent demodulator