Molecular Design of High-Performance Imidazolium Ionenes as Gas Separation Membranes and 3D Printing Materials