Correlation of stress, strain, morphological shifts and permeation-rate changes in polymer films