The response of a BGO scintillator to relativistic heavy ions