Catalytic activity of polypyrrole nanotubes decorated with noble-metal nanoparticles and their conversion to carbonized analogues