Structural and electronic features important to nπ*–ππ* inversion sensors: synthesis, luminescence, and electrochemical properties of sulfur and chlorine-containing macrocycles. Part 3