Obtaining soil hydraulic properties for water balance and leaching models from survey data. 1. Water retention