A Covalent Organic Framework Film for Three‐State Near‐Infrared Electrochromism and a Molecular Logic Gate | Synapse