Thermoelectric power generation in the core of a nuclear reactor