Smart textiles for protection