Segmented thermoelectric generator: exponential area variation in leg