Appealing perspectives of the structural, electronic, elastic and optical properties of LiRCl3 (R = Be and Mg) halide perovskites: a DFT study