Magnetic field dependence of the plasma properties in a negative hydrogen ion source for fusion