Smart materials and devices for electronic textiles