Synthesis of alkaloid-like compounds via the bridging Ritter reaction