Nanocomposite magnetic materials