CLARO-CMOS, an ASIC for single photon counting with Ma-PMTs, MCPs and SiPMs