Electronic spectra of hexanitrometallates