Electronic states of the nitric oxide ion