Mechanistic regulation of gram-scale synthesis of triple emission cyanobacteria-based carbon dots and visual ratiometric sensing applications