General principles of thermoelectric technology