Fabrication, structure and magnetic properties of CoPt3, CoPt and Co3Pt nanoparticles