Local thermoelectric effects in wide-gap semiconductors