Degenerate semiconductors in the light of electronegativity and chemical hardness