Validation of a track-repeating algorithm versus measurements in water for proton scanning beams