Chemical modification of a polymer leading to the formation or introduction of aliphatic or alicyclic unsaturated groups