Topology Optimization of Multimaterial Thermoelectric Structures