Nanowires in Thermoelectric Devices