Study on the doping process of polyaniline in a thermal solution of poly(styrene sulfonic acid)