Evolutionarily stable allocation to vegetative and sexual reproduction in plants