Fabrication of nanocomposite powders with a core-shell structure