Improvement of the heat pulse method for determining sap flow in trees