Layer Structures. 2. Influence of Spacers on Chain Packing and Phase Transitions of Poly(ester-imide)s Derived from N-(4-Carboxyphenyl)trimellitimide