A versatile transition metal ion-binding motif derived from covalent organic framework for efficient CO2 electroreduction