Development and Investigation of the Method for Compensating Thermoelectric Inhomogeneity Error