Patterns of conducting polypyrrole with tunable morphologies