A compact VLSI dc restorer for multichannel X-gamma ray detectors