Modelling effects of root growth and decay on soil water retention and permeability