What caused what? A quantitative account of actual causation using dynamical causal networks