Lateral dose profile characterization in scanning particle therapy.