pulse amplitude modulation derivation