Molecular tools and analytical approaches for the characterization of farm animal genetic diversity