Acid-promoted cyclization reactions of tetrahydroindolinones. Model studies for possible application in a synthesis of selaginoidine.