First-principles calculations to investigate structural, electronic, optical and mechanical properties of Mg-doped CaMoO3 cubic perovskites for fuel cell applications