A GEM-based thermal neutron detector for high counting rate applications