Carbon nanotubes or carbon globules: Optimization of the pyrolytic synthesis parameters and study of the magnetic properties