Modelling how carbon affects soil structure