Indole based multicomponent reactions towards functionalized heterocycles