Flexible ultrathin-body single-photon avalanche diode sensors and CMOS integration