Preparation, characterization and mechanical properties of rare-earth-based nanocomposites