Diversity and evolutionary patterns in the bacterial gut microbiota of termites and cockroaches