Synthesis, structures and magnetic properties of carbon-encapsulated nanoparticles via thermal decomposition of metal acetylide