Ultraviolet spectra and electronic structure of nitroethylene