Mechanistic Studies on the Synthesis of Pyrrolidines and Piperidines via Copper-Catalyzed Intramolecular C-H Amination