Synchronous demodulator for amplitude modulated signals