Synthesis of Tricyclic Quinolones and Naphthyridones by Intramolecular Heck Cyclization of Functionalized Electron‐Rich Heterocycles