Conductivity switching in polypyrrole-coated textile fabrics as gas sensors