An electronic, adjustable-waveform spark source for basic and applied emission spectrometry