Design and characterization of CMOS SPADs for charged particle detectors