Response functions of a Bonner sphere spectrometer calculated with GEANT4