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