Estimation of ergodic agent-based models by simulated minimum distance