State and parameter estimation with the extended Kalman filter: an alternative formulation of the model error dynamics | Synapse