pulse amplitude modulation and demodulation block diagram