Efficient Synthesis of Medium‐Sized Rings Incorporating Indole or Pyrrole Units by Samarium Diiodide Induced Cyclizations