Characterization with X-rays of a Large-Area GEMPix Detector with Optical Readout for QA in Hadron Therapy