Geant4 simulations of proton beam transport through a carbon or beryllium degrader and following a beam line