Text this: Development and verification of a Geant4 model of the electron beam mode in a clinical linear accelerator