A gentle introduction to particle filtering