NMR analysis of the chain microstructure of biodegradable terpolymers with shape memory properties