Quimera: a simulation platform based on the code Geant4 for dose evaluation in radiotherapy