A dose-rate approach to evaluate the dose delivered with the ion pencil beam scanning technique