Actively quenched single-photon avalanche diode for high repetition rate time-gated photon counting