Calibration of the Gamma-RAy Polarimeter Experiment (GRAPE) at a polarized hard X-ray beam