Connecting the forward problem to the inverse problem in uncertainty quantification of Earth system models using fast emulators