How to collect the information of bremsstrahlung spectrum produced by electron shooting in Geant4