Spatial resolution of triple-GEM detectors