The WCSim GEANT4 application