Synthesis of allylic halides and 1,5-dienes from allylic alcohols