Influence of synthesis conditions on the properties of Y2O3–MgO nanopowders and sintered nanocomposites