Scintillators for photon detection at medium energies—a comparative study of BaF2, CeF3 and PbWO4