Allylic functionalization of 2,5- and 2,4-cyclohexadiene-1,3-dicarboxylates