Synthesis of crystalline polyaniline