Three-dimensional inversion of geophysical field data on an unstructured mesh using deep learning neural networks, applied to magnetic data