Systematic afterpulsing-estimation algorithms for gated avalanche photodiodes.