Structure–stability correlation of copolyimide membranes derived from aliphatic/alicyclic/aromatic diamine and aromatic dianhydrides