Moderate deviations-based importance sampling for stochastic recursive equations