Evolution of reproductive effort in a metapopulation with local extinctions and ecological succession