Gas sorptions in polyaniline powders and gas permeations in polyaniline films