Beam Transport in a Dielectric Wall Accelerator for Intensity Modulated Proton Therapy