Performance of GEM detectors in high intensity particle beams.