Synergy and group size in microbial cooperation