Biosynthesis of alkaloids derived from shikimate pathway