Real-time optical and electronic sensing with a β-amino enone linked, triazine-containing 2D covalent organic framework