Controlled synthesis of high molecular weight polyaniline and poly(o-methoxyaniline)