Unified theory of dark count rate and system detection efficiency for NbN, WSi based superconducting single photon detectors | Synapse