High-accuracy Geant4 simulation and semi-analytical modeling of nuclear resonance fluorescence