Flexible thermoelectric materials and devices