Moderate deviations for particle filtering