Chemical ordering and electronic properties of lone pair chalcogenide semiconductors