Application of optical emission spectroscopy to high current proton sources