Computational understanding of heterocyclisation reactions and synthesis of fluorinated isoquinolines