Text this: Cavity energetic sizing algorithm applied in polymeric membranes for gas separation