Impact of heterogeneous activity and community structure on the evolutionary success of cooperators in social networks.