Synthesis and characterization of Ba1−xErxF2+x (0.00≤x≤1.00)