Probabilistic vortex crossing criterion for superconducting nanowire single-photon detectors