Active-Reset for the N+P Single-Ended SPAD Used in the NIR LiDAR Receivers