Smart Covalent Organic Frameworks as a dual-role material for light-controlled colorimetric pH detection and efficiency removal of pollutants in water treatment