Defect chemistry and states in the gap of lone-pair semiconductors☆