Chain folding in main-chain liquid crystalline polyesters: from π–π stacking toward shape memory