pulse amplitude modulation and demodulation circuit diagram