Optimization of the magnetic properties of materials for fluxgate sensors