Inference in dynamic stochastic general equilibrium models with possible weak identification