Potential and current distribution in the interelectrode gap of the vacuum arc in a magnetic field