Two-dimensional carbazole-based derivatives as versatile chemosensors for colorimetric detection of cyanide and two-photon fluorescence imaging of viscosity in vitro