Bifunctionality of chemical sensors based on the conducting polymer polypyrrole.