Synthesis of yttrium aluminum garnet nanoparticles in confined environment, and their characterization