Continuous-time random walk for open systems: Fluctuation theorems and counting statistics | Synapse