Spectral analysis of light emitted by prebreakdown phenomena in nonpolar liquids and gases