A novel pencil beam model for carbon-ion dose calculation derived from Monte Carlo simulations.