A squaraine-based sensor for colorimetric detection of CO2 gas in an aqueous medium through an unexpected recognition mechanism: experiment and DFT calculation