Synthesis of 2,3-dihydro-1H-pyrrolo[1,2-a]indoles by intramolecular nucleophilic aromatic substitution