Polarizable complexes in barium fluoride doped with trivalent ions