Accuracy of medieval Chinese and Middle-Eastern timings of eclipses