Studies for Intramolecular Ring Closure of Amino Vinyl Epoxides. Stereoselective Synthesis of Piperidine and Pyrrolidine Systems