Nanostructured and nanocomposite magnetic systems