CASTOR a VLSI CMOS mixed analog-digital circuit for low noise multichannel counting applications