Intramolecular cyclization of phenethylimides through imide carbonyl activation: synthesis of tetrahydroisoquinoline derivatives and related alkaloids