A statistical method for estimating uncertainties in the total global budgets of atmospheric trace gases