Modelling soil water supply to crops