High-voltage CMOS detectors