Improvement on the synthesis of (E)-alk-3-enoic acids