A step forward in metal nitride and carbide synthesis: from pure nanopowders to nanocomposites