Calculation of total and component potentials of water in Soil