Solution of physics-based inverse problems using conditional generative adversarial networks with full gradient penalty