Influence of microstructure on the chemical inhomogeneities in nanostructured longitudinal magnetic recording media