A photoluminescent covalent triazine framework : CO2 adsorption, light-driven hydrogen evolution and sensing of nitroaromatics