Imitation dynamics in population games on community networks