Comparative genomics reveals high rates of horizontal transfer and strong purifying selection on rhizobial symbiosis genes