Synthesis of Mo and W carbide and nitride nanoparticles via a simple "urea glass" route.