Influence of polymerization parameters on the molecular weight of polyaniline