Transition of polypyrrole from electroactive to electroinactive state investigated by use of in situ FTIR spectroscopy