Geant4 simulations and measurements of the performance of the SAGE spectrometer