Electronic structure of AIIBVI compounds with the NaCl structure