Importance Sampling in Stochastic Programming: A Markov Chain Monte Carlo Approach