Optical charge modulation as an internal voltage probe for CMOS ICs