Synthesis, Thermal Properties, and Gas Permeability of Poly(N-n-alkylmaleimide)s