Polymer-based resistive sensors for smart textiles