Electrode deposit structure influenced by changes in the local discharge atmosphere