Text this: Synthesis of magnetic nanostructures in different carbon matrices and post annealing with oxygen, nitrogen and argon