Monte Carlo-based software for 3D personalized dose calculations in image-guided radiotherapy