Magnetism of amorphous carbon nanofibers