The photophysical and photochemical properties of the oxacarbocyanine and thiacarbocyanine dyes