Optogenetic spatial patterning of cooperation in yeast populations