The end-correction in the Wilhelmy technique for surface tension measurements