Reconfigurable nanowires for thermo-electric applications