In silico identification of novel biosynthetic pathways: applications to posttranslational modifications and biosynthesis of natural products