Application of the compatibility factor to the design of segmented and cascaded thermoelectric generators | Synapse