Preparation of 2-acyl- and 2-alkoxycarbonyl-octahydroindolo[2,3-a]quinolizines