Solution of Physics-based Bayesian Inverse Problems with Deep Generative Priors