Reservoir modeling and inversion using generative adversarial network priors