Probabilistic optimization of phenotype distributions: a general solution for the effects of uncertainty on natural selection?