Spectrally resolved optical diagnostics for high-power neutral beams