eco-evolutionary optimality theory