Calculation of SPAD Photon Detection Efficiency