Studies on synthetic and mechanistic aspects of nitrogen heterocyclic Chemistry in the indole and alkaloid fields