Mg Doping Induced Effects on Structural, Optical, and Electrical Properties as Well as Cytotoxicity of CeO2 Nanostructures