Analysis and characterization of the X-ray beam produced by a PF device for radiotherapy applications