Efficient Learning of the Parameters of Non-Linear Models using Differentiable Resampling in Particle Filters