In situ FTIR measurements of polyaniline in the non-metallic phase