Electrosynthesis and characterization of nanostructured palladium-polypyrrole composites