Halochromic properties of sulfonphthaleine dyes