Effect of molecular architecture and chemical structure on solid-state and barrier properties of heteroatom-containing aliphatic polyesters