A Comparative Study of the Particle Filter and the Ensemble Kalman Filter