2D Covalent Organic Frameworks: From Synthetic Strategies to Advanced Optical‐Electrical‐Magnetic Functionalities