Tandem gene duplications drive divergent evolution of caffeine and crocin biosynthetic pathways in plants