Photoionization and luminescences in BaF2:Eu2+