Evolution of the life cycle in land plants