Gas transfer in supported films made by molecular self-assembly of ionic polymers