pulse amplitude modulation and demodulation theory