Mechanism of conduction in doped polyaniline