Modeling of Nanostructured Magnetic Field Sensors