Magnetic characterization of chitosan–magnetite nanocomposite films