Fitting soil water retention curve