Single-Photon Avalanche Diode Model for Circuit Simulations