Characterization of a flat-panel detector for 2D dosimetry in scanned proton and carbon ion beams. (March 2023)