CoPt and FePt nanoparticles for high density recording media