Quantitative determination of the uncertainty arising from the inhomogeneity of thermocouples