A Unified Framework for Forward and Inverse Problems in Subsurface Imaging using Latent Space Translations