A combined experimental and theoretical optimization of the refractive index of NixMg1-xO solid solution for transparent nanocomposite applications