Polyesters containing oxygen in the form of ether groups derived from polycarboxylic acids and polyhydroxy compounds