Statistical Inference for Generative Models with Maximum Mean Discrepancy