Biosynthesis of alkaloids derived from ornithine lysine and nicotinic acid