The transition from spark to arc discharge and its implications with respect to nanoparticle production