Performance of a BGO calorimeter in a tagged photon beam from 260 to 1150 MeV