Principle of Thermoelectric Cooling