Text this: Influence of alkaline-earth metals (B = Be, Mg, Ca) doping on the structural, electronic, optoelectronic, thermodynamic, and core-level spectroscopic studies of CsBCl3 halide perovskites.