Text this: Template-free generation and integration of functional 1D magnetic nanostructures.