Accurate measurement of the frequency of the 6S–8S two-photon transitions in cesium