On Importance Sampling for State Space Models