Morphological modification of polyaniline films for the separation of gases