Evolution of nitrogen fixation in spatially structured populations of Rhizobium