Physics of arcing, and implications to sputter deposition