Inference using simulated neural moments