Behavioral modeling of statistical phenomena of single-photon avalanche diodes