Bayesian estimation of state space models using moment conditions