Preparation of carboxylic acid esters by reaction with carbon monoxide or formates by addition to an unsaturated carbon-to-carbon bond