Spectroscopic studies of Ni2+ or Cr3+-doped BaLiF3