Electronic structure and thermoelectric properties of narrow band gap semiconductors and pseudo-gap systems