Structure characterization of self-acid-doped sulfonic acid ring-substituted polyaniline in its aqueous solutions and as solid film