Single-Photon Avalanche Diodes in CMOS Technologies for Optical Communications