Synthesis of heterocyclic compounds by the reactions of exocyclic α,β‐unsaturated ketones