Modelling the Doughnut of social and planetary boundaries with frugal machine learning