Total synthesis of biologically active alkaloids using transition metals