A novel method for the preparation of magnetic nanoparticles in a polypyrrole powder