Conducting polymers as infrared detectors