The influence of the environment on seed and seedling mortality