Community size, heterogeneity and voter turnouts