Investigation of thermoelectric properties and thermal stability of semiconductor materials for the application in middle temperature thermoelectric generators