Smart fibers in functional textiles