Allylic halogenation and oxidation of long chain α,β-unsaturated ester