A palladium-catalyzed route to huperzine A and its analogs and their anticholinesterase activity