Self-trapped exciton and core-valence luminescence in BaF2 nanoparticles