Polycarboxylic acids and polyhydroxy compounds in which at least one of the two components contains aliphatic unsaturation