Deep generative models for solving geophysical inverse problems