Porphyrins: XX. Theory for the states of Ni(d8) complexes