Modes of genetic adaptations underlying functional innovations in the rumen