A review of the Geant4 simulation platform for applications involving optical-based sensing and dosimetry