Environmental effects on radiative and nonradiative transitions of some merocyanine dyes in homogeneous and microheterogeneous systems