Valence-band density of states and chemical bonding for several non-transition-metal layer compounds: SnSe2, PbI2, BiI3, and GaSe