An Extension of the Differential Approach for Bayesian Network Inference to Dynamic Bayesian Networks