Current density reconstruction in vacuum arcs by inverting magnetic field data