Modelling and fabrication of magnetic field sensors based on nanostructured material