Studies on the influence of the synthesis parameters on the doping process of polyaniline