Domain walls in Hg2Br2 and KSCN—role of strains