The simulation of astroparticle experiments and the GEANT4 toolkit