Synthesis of Imine-Based Covalent Organic Frameworks Catalyzed by Metal Halides and in Situ Growth of Perovskite@COF Composites