Understanding the domino reaction between 3-chloroindoles and methyl coumalate yielding carbazoles. A DFT study