Fluorescence and energy-transfer characteristics of rare earth ions in BaYF5 crystals