The electronic spectra of CaN+2 and Ca(N2)+2