Ecological modelling of carbon sequestration