Cubic to pseudo-cubic tetragonal phase transformation with lithium and beryllium doping in CaTiO3 and its impact on electronic and optical properties: a DFT approach