Evolution of flowering decisions in a stochastic, density-dependent environment