The determination of sheath potential from retarding field analyser measurements in tokamak edge plasmas