Synthesis and mechanism of polyaniline nanotubes with rectangular cross section via in situ polymerization