Management of the output electrical power in thermoelectric generators