Robust Estimation for Nonparametric Families via Generative Adversarial Networks