Low-noise front-end amplifier and channel encoder for a 2-D X-ray digital imaging system with single photon counting capability