Thermo- and photochromic dyes: indolino-benzospiropyrans. Part 1. UV–VIS spectroscopic studies of 1,3,3-spiro(2H-1-benzopyran-2,2′-indolines) and the open-chain merocyanine forms; solvatochromism and medium effects on spiro ring formation