Geant4 simulation of a Triple-GEM detector exposed to the CHARM field at CERN