Morphology and microstructure of polypyrrole formed by electrochemical polymerization