Efficient particle filtering through residual nudging