Microstructure and scintillation characteristics of BaF2 ceramics