Rapid and efficient redox processes within 2D covalent organic framework thin films.