Quinoline fused heterocycles from intramolecular cycloaddition reactions