Email zadetek: Why do bacteria regulate public goods by quorum sensing?—How the shapes of cost and benefit functions determine the form of optimal regulation