Optical spectroscopy experiments on the 500 kA XP pulsed-power generator