Peculiarities of the electronic structure of compounds of nontransition elements of periods IV and V