Fluctuation theorem for birth–death or chemical master equations with time-dependent rates | Synapse