Invertible neural networks for emulation and retrieval