Dispersal, kin competition, and the ideal free distribution in a spatially heterogeneous population